package ModelLayer;



/**
 * The test class LoginTest.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class LoginTest extends junit.framework.TestCase
{
    /**
     * Default constructor for test class LoginTest
     */
    public LoginTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    protected void setUp()
    {
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    protected void tearDown()
    {
    }

	public void testCreateLogin()
	{
		ModelLayer.Login login1 = new ModelLayer.Login("yamiyugi", "013579");
	}


	public void testSetLoginInformation()
	{
		ModelLayer.Login login1 = new ModelLayer.Login("alex", "hej123");
		login1.setLoginName("manager");
		login1.setPassword("hallo321");
	}

	public void testGetLoginInformation()
	{
		ModelLayer.Login login1 = new ModelLayer.Login("alex", "hej123");
		assertSame("alex", login1.getLoginName());
		assertSame("hej123", login1.getPassword());
	}
}




